package com.waitingresult.designpattern.behavioral.template.demo1;

import com.waitingresult.designpattern.domain.UserEntity;

/**
 * @Author: WangShuai
 * @CreateTime: 2022-10-30  18:50
 * @Description:
 * @Version: 1.0
 */
public abstract class IdEntityTemplate {
    public void preSave(UserEntity userEntity){
        System.err.println("模板方法保存前要做的操作，及所有的模板子类都需要的方法");
    }
    public abstract void  save(UserEntity userEntity);
}
